<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>分销商结算</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>提现详情</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">提现详情</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmBanner">

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">分销商名称：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.operatorName}"
                                       readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">分销商账号：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.loginName}" readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">提现订单号：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.outTradeNo}"
                                       readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">提现金额：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.withdrawAmount}"
                                       readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">对应账单：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" style="width: 50%;height: 250px" readonly><c:forEach items="${acctWithdrawApply.acctBillOrderList}" var="acctBillOrder">${acctBillOrder.factAmount}元<fmt:formatDate value="${acctBillOrder.billStartTime}" pattern="yyyy-MM-dd HH:mm:ss" />至<fmt:formatDate value="${acctBillOrder.billEndTime}" pattern="yyyy-MM-dd HH:mm:ss" />${acctBillOrder.stationName}</c:forEach></textarea>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">提交时间：</label>
                            <div class="col-sm-8">
                                <input class="form-control"
                                       value="<fmt:formatDate value="${acctWithdrawApply.createdTime}" pattern="yyyy-MM-dd HH:mm:ss" />"
                                       readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">备注：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.remark}" readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">状态：</label>
                            <div class="col-sm-8">
                                <select class="form-control" readonly>
                                    <option value="0"
                                            <c:if test="${acctWithdrawApply.status eq '0'}">selected</c:if>    >未审核
                                    </option>
                                    <option value="1"
                                            <c:if test="${acctWithdrawApply.status eq '1'}">selected</c:if>    >已处理
                                    </option>
                                    <option value="2"
                                            <c:if test="${acctWithdrawApply.status eq '2'}">selected</c:if>    >驳回
                                    </option>
                                    <option value="3"
                                            <c:if test="${acctWithdrawApply.status eq '3'}">selected</c:if>    >提现中
                                    </option>
                                    <option value="4"
                                            <c:if test="${acctWithdrawApply.status eq '4'}">selected</c:if>    >已到账
                                    </option>
                                    <option value="5"
                                            <c:if test="${acctWithdrawApply.status eq '5'}">selected</c:if>    >提现失败
                                    </option>
                                </select>

                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">失败原因：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${acctWithdrawApply.errCodeDes}"
                                       readonly>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
</script>
</body>
</html>
